package zjc.案例练习;

import java.util.Scanner;

public class 数字加密 {
    public static void main(String[] args) {
        Scanner sr=new Scanner(System.in);
        System.out.println("输入密码长度：");
        int l=sr.nextInt();
        int[]a=new int[l];
        System.out.println("输入"+l+"位数密码:");
        int s=sr.nextInt();
        for (int i = 0; i < a.length; i++) {
            a[i]=s%10;
            s/=10;
        }
        for (int i = 0; i < a.length; i++) {
            a[i]=(a[i]+5)%10;
        }
        for (int i = 0; i < a.length; i++) {
            System.out.print(a[i]+" ");
        }
    }
}
